package java8_31;

/**
 * @author oldliu
 * @since 1.0
 */
public abstract class Door {
    private String brand;
    private int price;

    public Door(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public void open(){
        System.out.println(brand+"打开了");
    }
    public void close(){
        System.out.println(brand+"关上了。。。");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
